package com.steam.xbcc.dto;

import com.steam.xbcc.domain.Course;
import com.steam.xbcc.domain.CourseDetail;
import com.steam.xbcc.domain.CourseMarket;
import com.steam.xbcc.domain.CourseResource;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseSaveDto {
    @Valid
    private Course course;
    @Valid
    private CourseDetail courseDetail;
    @Valid
    private CourseMarket courseMarket;
    @Valid
    private CourseResource courseResource;
    @NotEmpty
    private List<Long> teacharIds;
}
